home *** CD-ROM | disk | FTP | other *** search
- ;$VER:AmiSearch installation script
-
- (complete 0)
- (set @default-dest "Work:")
-
- ; Texts
-
- (set #Warning-Txt
- (cat "Warning !\n\n\n"
- "AmiSearch II needs MUI 3.8+ to work.\n\n"
- "Without MUI AmiSearch II won't work...\n\n"
- ))(set #Path-Txt
- (cat "Please choose target directory."
- "An AmiSearchII drawer will be created there."
- ))(set #Path-Help
- (cat "This part allows you to choose the directory where AmiSearch II will be copied.\n\n"
- "An AmiSearch II drawer is created there, in order to allow a better index handling.\n\n"
- "The default one is Work:\n\n\n"
- ))
-
- ; Main
-
- (message #Warning-Txt)
- (set target
- (askdir (prompt #Path-Txt) (help #Path-Help) (default @default-dest) (newpath)
- ))
- (set @default-dest (tackon target "AmiSearchII"))
- (makedir (tackon target "AmiSearchII")(infos))
- (makedir (tackon target "AmiSearchII/Docs") (infos))
- (makedir (tackon target "AmiSearchII/Gfx"))
- (makedir (tackon target "AmiSearchII/ArchiveScripts"))
- (makedir (tackon target "AmiSearchII/BaseScripts"))
- (makedir (tackon target "AmiSearchII/Databases"))
- (makedir (tackon target "AmiSearchII/Prologs"))
-
- (copyfiles
- (prompt "Copying software")
- (help @copy-files-help)
- (source "AmiSearch2")
- (dest (tackon target "AmiSearchII"))
- (infos))
-
- (copyfiles
- (prompt "Copying archive handling script")
- (help @copy-files-help)
- (source "ArchiveScripts/AS2H")
- (dest (tackon target "AmiSearchII/ArchiveScripts"))
- (infos))
-
- (copyfiles
- (prompt "Copying pictures")
- (help @copy-files-help)
- (source "Gfx")
- (dest (tackon target "AmiSearchII/Gfx"))
- (pattern "#?")
- (infos))
-
- (complete 30)
-
- (copyfiles
- (prompt "Copying automatic creation scripts")
- (help @copy-files-help)
- (source "BaseScripts")
- (dest (tackon target "AmiSearchII/BaseScripts"))
- (pattern "#?")
- (infos))
-
- (copyfiles
- (prompt "Copying prologs")
- (help @copy-files-help)
- (source "Prologs")
- (dest (tackon target "AmiSearchII/Prologs"))
- (pattern "#?")
- (infos))
-
- (complete 40)
- (copyfiles (prompt "Copying localisation") (source "Locale/AmiSearch2.cd") (dest "LOCALE:"))
-
- (complete 50)
- (copyfiles
- (prompt "Copying manual")
- (help @copy-files-help)
- (source "Docs/English_Manual.guide")
- (dest (tackon target "AmiSearchII/Docs"))
- (infos))
-
- (complete 75)
-
- (copyfiles
- (prompt "Copying ReadMe.mui")
- (help @copy-files-help)
- (source "Docs/ReadMe.mui")
- (dest (tackon target "AmiSearchII/Docs"))
- (infos))
-
- (set myassign
- (cat "assign AS2: " (tackon (expandpath target) "AmiSearchII")
- )
- )
-
- (startup "AmiSearch II"
- (command myassign)
- (prompt "Adding assign to S:user-startup")
- (help @startup-help)
- )
- (run myassign)
-
- (complete 100)
-